package com.baor.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@Data
@TableName(value = "organization")
public class OrganizationVO {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String name;

    private Long parentId;

    private String contactPerson;

    private String contactPhone;

    private Integer serviceNumber;

    private Integer userNumber;

    private Integer deliveriesNumber;

    private Integer deliveryWeight;
    private Integer equipmentNumber;
    @TableField(exist = false)
    private List<OrganizationVO> children;
}
